from django.urls import path, re_path
# from rest_framework_nested import routers
# from rest_framework_bulk.routes import BulkRouter
from rest_framework.routers import DefaultRouter

from ..views import BooksViewSet, PublishViewSet, AutherViewSet

app_name = 'cloud'

# router = BulkRouter()
router = DefaultRouter()
router.register(r'books', BooksViewSet)
router.register(r'publishs', PublishViewSet)
router.register(r'authers', AutherViewSet)

urlpatterns = [
    # path("books", BooksViewSet),
    # path('publishs', PublishViewSet)
]
urlpatterns += router.urls